package com.ruoyi.business.domain;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 小区台账对象 bus_neighborhood_ledger
 *
 * @author ling
 * @date 2024-07-12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusNeighborhoodLedger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 小区名称 */
    @Excel(name = "小区名称")
    private String name;

    /** 所属街道 */
    @Excel(name = "所属街道")
    private String street;

    /** 所属班组 */
    @Excel(name = "所属班组")
    private String team;

    /** 所属人员 */
    @Excel(name = "所属人员")
    private String person;

    /** 引入管数量 */
    @Excel(name = "引入管数量")
    private Long pipeNum;

    /** 相邻管沟数量 */
    @Excel(name = "相邻管沟数量")
    private Long nearPipeNum;

    /** 庭院管长度(m) */
    @Excel(name = "庭院管长度(m)")
    private Long allPipeLength;

    /** 架空管长度(m) */
    @Excel(name = "架空管长度(m)")
    private Long overheadPipeLength;

    /** 地埋管长度(m) */
    @Excel(name = "地埋管长度(m)")
    private Long buriedPipeLength;

    /** 地埋管主管径(dn) */
    @Excel(name = "地埋管主管径(dn)")
    private Long buriedPipeDiameter;

    /** 地埋管材质 */
    @Excel(name = "地埋管材质")
    private String buriedPipeMaterial;

    /** 建设年代 */
    @Excel(name = "建设年代")
    private Long year;

    /** 楼栋数 */
    @Excel(name = "楼栋数")
    private Long buildingCount;

    /** 删除标识 */
    private String delFlag;

    /** 创建者ID */
    private Long createUser;

    /** 更新者ID */
    private Long updateUser;

    /** 是否文明城市 */
    @Excel(name = "是否文明城市")
    private String iscivilized;

    /** 调压设施数量 */
    @Excel(name = "调压设施数量")
    private Long regulatorNum;


    public BusNeighborhoodLedger(Long id, Long buildingCount) {
        this.id = id;
        this.buildingCount = buildingCount;
    }

    public BusNeighborhoodLedger(Long id,String iscivilized, Long regulatorNum) {
        this.id = id;
        this.iscivilized = iscivilized;
        this.regulatorNum = regulatorNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("street", getStreet())
                .append("team", getTeam())
                .append("person", getPerson())
                .append("pipeNum", getPipeNum())
                .append("nearPipeNum", getNearPipeNum())
                .append("allPipeLength", getAllPipeLength())
                .append("overheadPipeLength", getOverheadPipeLength())
                .append("buriedPipeLength", getBuriedPipeLength())
                .append("buriedPipeDiameter", getBuriedPipeDiameter())
                .append("buriedPipeMaterial", getBuriedPipeMaterial())
                .append("year", getYear())
                .append("buildingCount", getBuildingCount())
                .append("delFlag", getDelFlag())
                .append("createUser", getCreateUser())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateUser", getUpdateUser())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("iscivilized", getIscivilized())
                .append("regulatorNum", getRegulatorNum())
                .toString();
    }
}
